<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');

/**
 * Init Model
 *
 */


class Master_model extends CI_Model {

	function __construct(){
		parent::__construct();
	}
	
	//-- Get Listing (CATEGORY | SEARCH )
	public function getListing($catID=0){
		$catID = (int) $catID;
		if($catID ==0){
			return FALSE;
		}else{
			$sql = "select t1.* from term as t1 
					inner join term as t2 on t1.listing_id = t2.listing_id 
					where t1.term='key' and t1.term_value = '$catID'";
			
			print $sql;
			die();
		}
	}
	
	
}
/* End of file*/
